body{
    display: flex;
    /* 主轴为垂直方向，起点在上沿 */
    flex-direction: column;
}
.main{
    flex: 1;
    overflow-y: scroll;

    .swiper-container{
        width: 100%;
        height: 200px;
        background-color: tan;
        margin-bottom: 10px;

        .bg1,.bg2,.bg3{
            background-repeat: no-repeat;
            background-position:center center;
            background-size: cover;
        }
        .bg1{
            background-image: url(../images/index-swiper-bg1.jpg);
        }
        .bg2{
            background-image: url(../images/index-swiper-bg2.jpg);
        }
        .bg3{
            background-image: url(../images/index-swiper-bg3.jpg);
        }
    }

    ul{
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        padding-left: 14px;
        padding-right: 14px;

        li{
            margin-top: 10px;
            margin-bottom: 10px;
            border-radius: 15px;
            background-repeat: no-repeat;
            position: relative;
        }
        // 今日排名
        .ranking{
            width: 35%;
            height: 150px;
            background-color: rgba(21, 146, 204, 0.73);
            
            #rank{
                color: white;
                font-size: 54px;
                position: absolute;
                bottom: 25px;
                right: 10px;
                font-weight: 600;
                z-index: 1;
            }
            >.ranimg{
                width: 100%;
                height: 150px;
                position: absolute;
                background-image: url(../images/index01.png);
                background-repeat: no-repeat;
                background-size:106px 106px;
                background-position: -15px 31px;
                opacity: 0.3;

            }
        }

        // 今日打卡
        .record{
            width: 55%;
            height: 150px;
            background-color: rgba(123, 203, 245, 0.73);

            .clock-in{
                color: rgb(0, 78, 115);
                border: 3px solid rgb(0, 81, 119);
            }

            .clock{
                color: darkgray;
                border: darkgray 3px solid;
            }

            .clock-in,.clock{
                width: 94px;
                line-height: 34px;
                position: absolute;
                top: 85px;
                right: 15px;
                font-size: 16px;
                border-radius: 25px;
                font-weight: 700;
                z-index: 2;
                text-align: center;
            }

            .recimg{
                background-image: url(../images/index02.png);
                width: 100%;
                height: 150px;
                position: absolute;
                background-repeat: no-repeat;
                background-size:110px 110px;
                background-position: 10px 30px;
                opacity: 0.67;
            }
        }

        .ranking,.record,.badge{
            h4{
                color: rgba(0, 78, 115, 100);
                font-size: 20px;
                line-height: 58px;
                position: absolute;
                z-index: 1;
                margin-left: 15px;
            }
        }

        // 运动数据
        .exercise{
            width: 45%;
            height: 110px;
            background-image: url(../images/index03.png);
            background-size:100% 110px;
        }

        // 累积运动徽章
        .badge{
            width: 45%;
            height: 110px;
            background-color: rgb(157, 189, 227);

            h4{
                font-size: 16px;
                line-height: 46px;
            }

            .badimg{
                width: 100%;
                height: 100%;
                background-image: url(../images/index04.png);
                background-repeat: no-repeat;
                background-size: 105px 105px;
                background-position: 5px 15px;
            }
        }

        // 课程训练
        .drill{
            background-image: url(../images/index05.jpg);
        }

        // 户外跑步
        .outdoors{
            background-image: url(../images/index06.png);
        }

        .drill,.outdoors{
            width: 100%;
            height: 110px;
            background-size: cover;
        }

        .drill,.outdoors,.exercise{
            h5{
                color: rgba(255, 255, 255, 100);
                font-size: 16px;
                line-height: 48px;
                margin-left: 15px;
            }
        }
    }
}
